package run.bottle.app.security.support;

import lombok.*;
import run.bottle.app.model.entity.SysUser;

/**
 * 用户详细信息
 *
 * @author: Lycheng
 * @date: 2020/10/30 14:40
 */
@ToString
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
public class UserDetail {

    private SysUser user;

    /**
     * 获取用户信息
     * @return
     */
    @NonNull
    public SysUser getUser() {
        return user;
    }

    /**
     * 设置用户信息
     * @param user
     */
    public void setUser(SysUser user) {
        this.user = user;
    }
}
